<?php

namespace app\admin\controller;

use think\Controller;
use think\facade\Config;
use think\facade\Request;

class Base extends Controller
{
    public function initialize()
    {
        if (!session('?admin.id')) {
            $this->redirect('admin/index/login');
        }
        $this->pageSize = Request::param('page_size',Config::get('app.page_size'));
    }
}
